.container {
    width: 325px;
    height: 50px;
    border: 1px solid red;
    margin: 50px auto;
    position: relative;
}

.circle {
    width: 50px;
    height: 50px;
    position: absolute;
    border-radius: 50%;
    transition: all 1s ease-in-out;
    left: 0;
    text-align: center;
    line-height: 50px;
    color: white;
    font-size: 1.2em;
}

.circle:nth-child(1) {
    border-radius: 25px;
    background-color: #1abc9c;
    width: 325px;
    z-index: 500;
}

.circle:nth-child(2) {
    background-color: #f1c40f;
    transition-delay: 0.8s;
}

.circle:nth-child(3) {
    background-color: #c0392b;
    transition-delay: 0.6s;
}

.circle:nth-child(4) {
    background-color: #9b59b6;
    transition-delay: 0.4s;
}

.circle:nth-child(5) {
    background-color: #e67e22;
    transition-delay: 0.2s;
}

.circle:nth-child(6) {
    background-color: #8e44ad;
}


/* hover 之后 */

.container:hover .circle:not(:nth-child(1)) {
    transform: rotateZ(360deg)
}

.container:hover .circle:nth-child(1) {
    width: 50px;
}

.container:hover .circle:nth-child(2) {
    left: 55px;
}

.container:hover .circle:nth-child(3) {
    left: 110px;
}

.container:hover .circle:nth-child(4) {
    left: 165px;
}

.container:hover .circle:nth-child(5) {
    left: 220px;
}

.container:hover .circle:nth-child(6) {
    left: 275px;
}


/* .circle:nth-child(2) {
    left: 110px;
}
.circle:nth-child(2) {
    left: 110px;
} */